package com.yunhe.common.model.data;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;


public class BatteryDataDetail implements Serializable {

    private Long pid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dtime;

    private Double value;

    public BatteryDataDetail(Long pid, Date dtime, Double value) {
        this.pid = pid;
        this.dtime = dtime;
        this.value = value;
    }

    public BatteryDataDetail() {
    }


    public Double getValue() {
        return value;
    }

    public void setValue(Double value) {
        this.value = value;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Date getDtime() {
        return dtime;
    }

    public void setDtime(Date dtime) {
        this.dtime = dtime;
    }

    @Override
    public String toString() {
        return "BatteryDataDetail{" +
                "pid=" + pid +
                ", dtime=" + dtime +
                ", value=" + value +
                '}';
    }
}
